import request from '@/utils/request'

// 查询互动提问的问题列表
export function listInteractionQuestion(query) {
  return request({
    url: '/study/interactionQuestion/list',
    method: 'get',
    params: query
  })
}

// 查询互动提问的问题详细
export function getInteractionQuestion(id) {
  return request({
    url: '/study/interactionQuestion/' + id,
    method: 'get'
  })
}

// 新增互动提问的问题
export function addInteractionQuestion(data) {
  return request({
    url: '/study/interactionQuestion',
    method: 'post',
    data: data
  })
}

// 修改互动提问的问题
export function updateInteractionQuestion(data) {
  return request({
    url: '/study/interactionQuestion',
    method: 'put',
    data: data
  })
}

// 删除互动提问的问题
export function delInteractionQuestion(id) {
  return request({
    url: '/study/interactionQuestion/' + id,
    method: 'delete'
  })
}
